import request from '@/utils/request'

// 查询通行证概览列表
export function listFlowPass(query) {
  return request({
    url: '/flow/flowPass/list',
    method: 'get',
    params: query
  })
}

// 查询通行证概览详细
export function getFlowPass(passId) {
  return request({
    url: '/flow/flowPass/' + passId,
    method: 'get'
  })
}

// 新增通行证概览
export function addFlowPass(data) {
  return request({
    url: '/flow/flowPass',
    method: 'post',
    data: data
  })
}

// 修改通行证概览
export function updateFlowPass(data) {
  return request({
    url: '/flow/flowPass',
    method: 'put',
    data: data
  })
}

// 删除通行证概览
export function delFlowPass(passId) {
  return request({
    url: '/flow/flowPass/' + passId,
    method: 'delete'
  })
}
